package com.hyk.entity.response;

import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyk.enums.CodeGeneratorEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CodeGeneratorResponse implements Serializable {

    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "关联数据源id")
    private Long dataId;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "包路径")
    private String packageUrl;

    @ApiModelProperty(value = "表名逗号分隔")
    private String tableName;

    @ApiModelProperty(value = "模块名")
    private String modelName;

//    @ApiModelProperty(value = "0:未执行，1:已执行")
//    private Integer status;

    @ApiModelProperty(value = "0:未删除，1已删除")
    private Integer isDelete;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String dataName;
 

    @ApiModelProperty(value = "0:未执行，1:已执行")
    private CodeGeneratorEnum status;

    @ApiModelProperty(value = "乐观锁")
    private Integer version;

}
